"""
@author:menglei
@desc:模板属性值搜索接口
"""
from pdd.api.base import RestApi


class PddGoodsTemplatePropertyValueSearchRequest(RestApi):
    """
    @:param: cat_id:LONG:类目id
    @:param: page_num:INTEGER:页码 从1开始
    @:param: page_size:INTEGER:1页查询的最大数据 [1，500], 默认100
    @:param: parent_vid:LONG:父属性值id
    @:param: template_pid:LONG:模板属性id
    @:param: value:STRING:需要模糊搜索的属性值
    @:param: ref_pid:LONG:引用属性id
    """
    def __init__(self,domain='https://gw-api.pinduoduo.com'):
        RestApi.__init__(self, domain)
        self.cat_id = None
        self.page_num = None
        self.page_size = None
        self.parent_vid = None
        self.template_pid = None
        self.value = None
        self.ref_pid = None

    def getapiname(self):
        return 'pdd.goods.template.property.value.search'